package com.qhg.saas_server.mapper;

import com.qhg.saas_server.pojo.Comployee;
import com.qhg.saas_server.pojo.dto.ComployeeInfoDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface ComployeeMapper {
    //模糊查询名字和部门
    List<ComployeeInfoDto> SelectComployee(@Param("comploName") String comploName, @Param("departName") String departName);
    //通过ID查询员工
    ComployeeInfoDto SelectById(Integer comploId);
    //插入
    void InsertComployee(Comployee comployee);
    //修改
    void UpdateComployee(Comployee comployee);
    //重置密码
    void UpdatePassword(@Param("comploId") Integer comploId, @Param("comploPassword") String comploPassword);
    //修改状态
    void UpdateStauts(@Param("comploStatus") Integer comploStatus, @Param("comploId") Integer comploId);
    //删除
    void DeleteComployeeById(Integer comploId);

    //模糊查询名字和部门，并活跃的员工
    List<ComployeeInfoDto> SelectRComployee(@Param("comploName") String comploName, @Param("departName") String departName);

}
